{include file="public/layout" /}
<body class="help-page" style="min-width:auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page" style="min-width: auto;box-shadow:none;">
    <form class="form-horizontal" id="post_form" action="{:U('Links/add')}" method="post">
        <div class="help-form-default">
            <div  class="help_tab_index" id="help_tab_index_1" {neq name="$Request.param.tab_index" value="1"}style="display:none"{/neq}>
                <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('System/web2')}" onclick="toTopFame(this);" class=""><em>副栏目</em></a>如何开启？&nbsp;<a href="javascript:void(0);" data-href="{:url('System/web2')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('ArchivesFlag/index',array('source'=>'archives'))}" onclick="toTopFame(this);"  class=""><em>文档属性</em></a>如何自定义？&nbsp;<a href="javascript:void(0);" data-href="{:url('ArchivesFlag/index',array('source'=>'archives'))}" onclick="toTopFame(this);"  class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('Tags/index',array('source'=>'archives'))}" onclick="toTopFame(this);"  class=""><em>文档标签</em></a>？&nbsp;<a href="javascript:void(0);" data-href="{:url('Tags/index',array('source'=>'archives'))}" onclick="toTopFame(this);"  class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('System/thumb',array('source'=>'archives'))}"  onclick="toTopFame(this);" class=""><em>封面图片</em></a>生成方式如何设置？&nbsp;<a href="javascript:void(0);" data-href="{:url('System/thumb',array('source'=>'archives'))}"  onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('System/water',array('source'=>'archives'))}"  onclick="toTopFame(this);"  class=""><em>图片水印</em></a>如何添加？&nbsp;<a href="javascript:void(0);" data-href="{:url('System/water',array('source'=>'archives'))}"  onclick="toTopFame(this);"  class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row {empty name='$global.web_citysite_open'} none {/empty}">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('Citysite/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>城市分站</em></a>如何设置？&nbsp;<a href="javascript:void(0);" data-href="{:url('Citysite/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('Field/channel_index',array('channel_id'=>5,'source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>自定义字段</em></a>如何添加？&nbsp;<a href="javascript:void(0);" data-href="{:url('Field/channel_index',array('channel_id'=>5,'source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="https://www.eyoucms.com/plus/view.php?aid=9993&origin_eycms=1" onclick="openTopframe(this,'视频标签调用','80%','80%');" class=""><em>视频标签</em></a>如何在前端模板调用?&nbsp;<a href="javascript:void(0);" data-href="https://www.eyoucms.com/plus/view.php?aid=9993&origin_eycms=1" onclick="openTopframe(this,'视频标签调用','80%','80%');" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><em>编辑器功能</em></a>如何更改？&nbsp;<a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><em>内容图片附加功能</em></a>如何修改？&nbsp;<a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
            </div>
            
            <div  class="help_tab_index" id="help_tab_index_2" {neq name="$Request.param.tab_index" value="2"}style="display:none"{/neq}>
                <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
                 <dl class="help-row">
                     <dd class="help-opt">
                         <a href="javascript:void(0);" data-href="{:url('Seo/seo')}" onclick="toTopFame(this);" class=""><em>SEO标题</em></a>如何配置构成规则？&nbsp;<a href="javascript:void(0);" data-href="{:url('Seo/seo')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                     </dd>
                 </dl>
            </div>
            <div class="help_tab_index" id="help_tab_index_3" {neq name="$Request.param.tab_index" value="3"}style="display:none"{/neq}>
                <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
                <dl class="help-row">
                    <dd class="help-opt">
                        <input type="hidden" id="pen_name" name="pen_name" value="{$Think.session.admin_info.pen_name|default='小编'}" />
                        <a href="javascript:void(0);" onclick="set_top_author();" class=""><em>作者</em></a>设置默认值（将同步至管理员笔名）&nbsp;<a href="javascript:void(0);" onclick="set_top_author();" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <textarea id="system_originlist_str" style="display: none;">{$system_originlist_str}</textarea>
                        <a href="javascript:void(0);" onclick="set_top_originlist();" class=""><em>来源</em></a>设置默认值&nbsp;<a href="javascript:void(0);" onclick="set_top_originlist();" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
                <dl class="help-row">
                    <dd class="help-opt">
                        <a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><em>点击数</em></a>设置默认值&nbsp;<a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
                    </dd>
                </dl>
            </div>
        </div>
    </form>
</div>
<div class="f_jxw"></div>
<script>
    function set_top_originlist(){
        var value = $('#system_originlist_str').val();
        top.layer.prompt({
                title:'来源管理',
                shade: layer_shade,
                formType: 2,
                btnAlign:'r',
                closeBtn: 3,
                placeholder: '一行代表一个来源值',
                value: value,
            },
            function(val, index){
                $.ajax({
                    url: eyou_basefile + "?m=admin&c=Archives&a=ajax_set_originlist&_ajax=1",
                    type: 'POST',
                    dataType: 'JSON',
                    data: {origin:val},
                    success: function(res){
                        if (res.code == 1) {
                            $('#system_originlist_str').val(res.data.originlist_str);
                            top.layer.msg(res.msg, {icon: 1, time:1000});
                        } else {
                            showErrorMsg(res.msg);
                            return false;
                        }
                    },
                    error: function(e){
                        showErrorMsg(e.responseText);
                        return false;
                    }
                });
                top.layer.close(index);
            }
        );
    }
    function set_top_author(){
        var value = $("#pen_name").val();
        top.layer.prompt({
                title:'设置作者默认名称',
                shade: layer_shade,
                btnAlign:'r',
                closeBtn: 3,
                value: value
            },
            function(val, index){
                $.ajax({
                    url: eyou_basefile + "?m=admin&c=Admin&a=ajax_setfield&_ajax=1",
                    type: 'POST',
                    dataType: 'JSON',
                    data: {field:'pen_name',value:val},
                    success: function(res){
                        if (res.code == 1) {
                            $('#pen_name').val(val);
                            top.layer.msg(res.msg, {icon: 1, time:1000});
                        } else {
                            showErrorMsg(res.msg);
                            return false;
                        }
                    },
                    error: function(e){
                        showErrorMsg(e.responseText);
                        return false;
                    }
                });
                top.layer.close(index);
            }
        );
    }
    function openTopframe(obj,title,width,height,offset){
        //iframe窗
        var url = '';
        if (typeof(obj) == 'string' && obj.indexOf("?m=admin&c=") != -1) {
            url = obj;
        } else {
            url = $(obj).data('href');
        }
        if (!width) width = '100%';
        if (!height) height = '100%';
        if (!offset) offset = 'auto';

        var anim = 0;
        var shade = layer_shade;
        if ('r' == offset) {
            shade = [0.05];
            anim = 5;
        }
        var iframes = top.layer.open({
            type: 2,
            title: title,
            fixed: true, //不固定
            shadeClose: false,
            shade: shade,
            offset: offset,
            closeBtn: 3,
            // maxmin: true, //开启最大化最小化按钮
            area: [width, height],
            anim: anim,
            content: url,
            end: function() {
                if (1 == $(obj).data('closereload')) window.location.reload();
            },
            success: function(layero, index){
                if ('r' == offset) {
                    $('.layui-layer-shade').click(function(){
                        layer.close(index);
                    });
                }
            }
        });
        if (width == '100%' && height == '100%') {
            layer.full(iframes);
        }
    }
    //跳转走
    function toTopFame(obj){
        var url = $(obj).data('href');
        title = '即将跳转到新页面,编辑内容不会保存，确认跳转？';
        btn = ['确定', '取消']; //按钮
        top.layer.confirm(title, {
                shade: layer_shade,
                area: ['480px', '190px'],
                move: false,
                title: '提示',
                btnAlign:'r',
                closeBtn: 3,
                btn: btn, //按钮
                success: function () {
                   top.$(".layui-layer-content").css('text-align', 'left');
                }
            }, function(index){
                // 确定
                top.layer.close(index);
                top.$("#workspace").attr('src', url);
//                parent.parent.location.href = url;
            }, function(index){
                top.layer.close(index);
                return false;// 取消
            }
        );
    }
</script>

{include file="public/footer" /}